if __name__ == "__main__":

    from log import LogConnection, LOG_SETTINGS
    from datetime import datetime, timedelta

    log_conn = LogConnection(LOG_SETTINGS)

    start_time = datetime(2024, 5, 19, 0, 0, 0)
    end_time = datetime(2024, 5, 19, 8, 0, 0)

    data = log_conn.export_logs(start_time.timestamp(), end_time.timestamp())
    data.to_csv("log.csv")
    print("ok")
